home *** CD-ROM | disk | FTP | other *** search
- // Jazz and Blues Midi Composer
- // Written by Joshua Paul and John Blatz
- // MacHack 16, June 21, 2000
- //
- // This little program, in its first incarnation, should write a jazzy MIDI file.
- // The method we use for doing this is to choose some kind of pitch-only based line
- // and dynamically create a syncopation for this line. The final product is thus a
- // melody which varies itself in a reasonable way from the pitch line and has created
- // a semi-random syncopation which fits the pitch line.
- //
- // The hope is that we eventually add more instruments and more complexity, but only
- // time will tell
-
- #include <iostream.h>
- #include <stdlib.h>
- #include <fstream.h>
- #include "MusicClasses.h"
-
- void makeSong(ofstream&, ifstream&);
-
- int main() {
- ofstream crap;
- ifstream input;
-
- input.open("DeCSS.c", ios::binary);
- crap.open("DeCSS.mid", ios::binary);
- makeSong(crap, input);
- }
-
- void makeSong(ofstream& fout, ifstream& fin) {
- Song bullshitSong(fin);
- bullshitSong.OutputToFile(fout);
- }